# 设置最小 CMake 版本
cmake_minimum_required(VERSION 3.10)

# 设置项目名称
project(SDLExample)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

add_subdirectory(sdl)

# 添加可执行文件
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/sdl/include)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} sdl)